﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ServerFramework.Net.Http
{
    /// <summary>
    /// http 路由接口
    /// </summary>
    public interface IHttpRoute
    {
        /// <summary>
        /// 处理http请求
        /// </summary>
        /// <param name="requst">http请求</param>
        /// <param name="response">http响应</param>
        /// <returns></returns>
        bool Process(HttpListenerRequest request, HttpListenerResponse response);
    }
}
